package com.neusoft.neuiotms.dcam.fixed.repository;

import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import com.neusoft.neuiotms.dcam.fixed.model.MachinePartsBind;

public interface MachinePartsBindRepository extends JpaRepository<MachinePartsBind, Long>, CustomizedPartsBindRepository {

    List<MachinePartsBind> findByPartsCodeAndStatus(String  partsCode, String status);

    List<MachinePartsBind> findByBindCodeAndStatus(String bindCode, String status);
    
    List<MachinePartsBind> findByBindCodeAndPartsCodeAndStatus(String bindCode, String partsCode, String status);
    
    List<MachinePartsBind> findByBindCodeAndPartsCode(String bindCode, String partsCode);
    
    List<MachinePartsBind> findByStatus(String status);
}
